<!DOCTYPE html>


  <html class="light page-post">


<head>
  <meta charset="utf-8">
  
  <title>多个Github仓库合并到一个作为分支存在 | 东窗随笔</title>

  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

  
    <meta name="keywords" content="git," />
  

  <meta name="description" content="&amp;#x76EE;&amp;#x7684;&amp;#xFF1A; &amp;#x5C06;github&amp;#x4E0A;&amp;#x591A;&amp;#x4E2A;&amp;#x4ED3;&amp;#x5E93;&amp;#x5408;&amp;#x5E76;&amp;#x5230;&amp;#x4E00;&amp;#x4E2A;&amp;#x91CC;&amp;#x9762;&amp;#xFF0C;&amp;#x4FDD;&amp;#x7559;&amp;#x63D0;&amp;#x4EA4;&amp;#x8BB0;&amp;#x5F55;
git clon">
<meta property="og:type" content="article">
<meta property="og:title" content="多个Github仓库合并到一个作为分支存在">
<meta property="og:url" content="http://hanlyjiang.github.io/2016/01/11/多个Github仓库合并到一个作为分支存在/index.html">
<meta property="og:site_name" content="东窗随笔">
<meta property="og:description" content="&amp;#x76EE;&amp;#x7684;&amp;#xFF1A; &amp;#x5C06;github&amp;#x4E0A;&amp;#x591A;&amp;#x4E2A;&amp;#x4ED3;&amp;#x5E93;&amp;#x5408;&amp;#x5E76;&amp;#x5230;&amp;#x4E00;&amp;#x4E2A;&amp;#x91CC;&amp;#x9762;&amp;#xFF0C;&amp;#x4FDD;&amp;#x7559;&amp;#x63D0;&amp;#x4EA4;&amp;#x8BB0;&amp;#x5F55;
git clon">
<meta property="og:updated_time" content="2016-12-08T10:13:52.796Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="多个Github仓库合并到一个作为分支存在">
<meta name="twitter:description" content="&amp;#x76EE;&amp;#x7684;&amp;#xFF1A; &amp;#x5C06;github&amp;#x4E0A;&amp;#x591A;&amp;#x4E2A;&amp;#x4ED3;&amp;#x5E93;&amp;#x5408;&amp;#x5E76;&amp;#x5230;&amp;#x4E00;&amp;#x4E2A;&amp;#x91CC;&amp;#x9762;&amp;#xFF0C;&amp;#x4FDD;&amp;#x7559;&amp;#x63D0;&amp;#x4EA4;&amp;#x8BB0;&amp;#x5F55;
git clon">

  

  
    <link rel="icon" href="/favicon.ico">
  

  <link href="/css/styles.css?v=d671a41f" rel="stylesheet">


  
    <link rel="stylesheet" href="/css/personal-style.css">
  

  

  
  <script type="text/javascript">
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "//hm.baidu.com/hm.js?57e94d016e201fba3603a8a2b0263af0";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>



  
    <script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>
  

  
    <link rel="stylesheet" href="//cdn.bootcss.com/font-awesome/4.3.0/css/font-awesome.min.css">
  
</head>

<body>


  
    <span id="toolbox-mobile" class="toolbox-mobile">观乎</span>
  

  <div class="post-header CENTER">
   
  <div class="toolbox">
    <a class="toolbox-entry" href="/">
      <span class="toolbox-entry-text">观乎</span>
      <i class="icon-angle-down"></i>
      <i class="icon-home"></i>
    </a>
    <ul class="list-toolbox">
      
        <li class="item-toolbox">
          <a
            class="ROUND_RECT"
            href="/archives/"
            rel="noopener noreferrer"
            target="_self"
            >
            博客
          </a>
        </li>
      
        <li class="item-toolbox">
          <a
            class="ROUND_RECT"
            href="/category/"
            rel="noopener noreferrer"
            target="_self"
            >
            分类
          </a>
        </li>
      
        <li class="item-toolbox">
          <a
            class="ROUND_RECT"
            href="/tag/"
            rel="noopener noreferrer"
            target="_self"
            >
            标签
          </a>
        </li>
      
        <li class="item-toolbox">
          <a
            class="ROUND_RECT"
            href="/about/"
            rel="noopener noreferrer"
            target="_self"
            >
            关于
          </a>
        </li>
      
        <li class="item-toolbox">
          <a
            class="ROUND_RECT"
            href="/atom.xml"
            rel="noopener noreferrer"
            target="_blank"
            >
            RSS
          </a>
        </li>
      
        <li class="item-toolbox">
          <a
            class="ROUND_RECT"
            href="/search/"
            rel="noopener noreferrer"
            target="_self"
            >
            搜索
          </a>
        </li>
      
    </ul>
  </div>


</div>




<div class="content content-post CENTER">
   <article id="post-多个Github仓库合并到一个作为分支存在" class="article article-type-post" itemprop="blogPost">
  <header class="article-header">
    <h1 class="post-title">多个Github仓库合并到一个作为分支存在</h1>

    <div class="article-meta">
      <span>
        <i class="icon-calendar"></i>
        <span>2016.01.11</span>
      </span>

      
        <span class="article-author">
          <i class="icon-user"></i>
          <span>hanlyjiang@outlook.com</span>
        </span>
      

      
  <span class="article-category">
    <i class="icon-list"></i>
    <a class="article-category-link" href="/categories/版本控制/">版本控制</a> / <a class="article-category-link" href="/categories/版本控制/GIT/">GIT</a>
  </span>



      
        <span>
          <i class="icon-comment"></i>
          <a href="http://hanlyjiang.site/2016/01/11/多个Github仓库合并到一个作为分支存在/#disqus_thread"></a>
        </span>
      

      
      <i class="fa fa-eye"></i> 
        <span id="busuanzi_container_page_pv">
           &nbsp热度 <span id="busuanzi_value_page_pv">
           <i class="fa fa-spinner fa-spin"></i></span>℃
        </span>
      

      
      
    </div>
  </header>

  <div class="article-content">
    
      <p>&#x76EE;&#x7684;&#xFF1A; &#x5C06;github&#x4E0A;&#x591A;&#x4E2A;&#x4ED3;&#x5E93;&#x5408;&#x5E76;&#x5230;&#x4E00;&#x4E2A;&#x91CC;&#x9762;&#xFF0C;&#x4FDD;&#x7559;&#x63D0;&#x4EA4;&#x8BB0;&#x5F55;</p>
<pre><code>git clone https://github.com/hanlyjiang/AndroidLearning.git
cd AndroidLearning

# &#x5408;&#x5E76;&#x7B2C;&#x4E00;&#x4E2A;&#x4ED3;&#x5E93;
git remote add RepoA https://github.com/hanlyjiang/AndroidUtils.git
git pull RepoA
git checkout -b android_utils_master RepoA/master
git push origin android_utils_master
git checkout -b android_utils_gh_pages RepoA/gh-pages
git push origin android_utils_gh_pages

# &#x5408;&#x5E76;&#x7B2C;&#x4E8C;&#x4E2A;&#x4ED3;&#x5E93;
git remote add RepoA https://github.com/hanlyjiang/AndroidDemos.git
git pull RepoB
git checkout -b android_demos_master RepoB/master
</code></pre><p>&#x7136;&#x540E;&#x518D;&#x8BBF;&#x95EE;<a href="https://github.com/hanlyjiang/AndroidLearning" target="_blank" rel="external">https://github.com/hanlyjiang/AndroidLearning</a> &#x5373;&#x53EF;&#x770B;&#x5230;&#x4ED3;&#x5E93;&#x90FD;&#x4F5C;&#x4E3A;&#x5206;&#x652F;&#x88AB;&#x63A8;&#x9001;&#x8FC7;&#x53BB;&#x4E86;&#xFF0C;&#x63A5;&#x7740;&#x5728;github&#x4E0A;&#x5220;&#x6389;&#x88AB;&#x5408;&#x5E76;&#x7684;&#x4E24;&#x4E2A;&#x4ED3;&#x5E93;</p>

    
  </div>
</article>

</div>


  <div class="text-center donation">
    <div class="inner-donation">
      <span class="btn-donation">支持一下</span>
      <div class="donation-body">
        <div class="tip text-center">扫一扫，支持HanlyJiang</div>
        <ul class="theme.donation.items.length">
        
          <li class="item">
            <img src="/images/qr-wechat.png" alt="">
          </li>
        
          <li class="item">
            <img src="/images/qr_zhifubao.jpg" alt="">
          </li>
        
        </ul>
      </div>
    </div>
  </div>




  <a id="backTop" class="back-top">
    <i class="icon-angle-up"></i>
  </a>




  <div class="modal" id="modal">
  <span id="cover" class="cover hide"></span>
  <div id="modal-dialog" class="modal-dialog hide-dialog">
    <div class="modal-header">
      <span id="close" class="btn-close">关闭</span>
    </div>
    <hr>
    <div class="modal-body">
      <ul class="list-toolbox">
        
          <li class="item-toolbox">
            <a
              class="ROUND_RECT"
              href="/archives/"
              rel="noopener noreferrer"
              target="_self"
              >
              博客
            </a>
          </li>
        
          <li class="item-toolbox">
            <a
              class="ROUND_RECT"
              href="/category/"
              rel="noopener noreferrer"
              target="_self"
              >
              分类
            </a>
          </li>
        
          <li class="item-toolbox">
            <a
              class="ROUND_RECT"
              href="/tag/"
              rel="noopener noreferrer"
              target="_self"
              >
              标签
            </a>
          </li>
        
          <li class="item-toolbox">
            <a
              class="ROUND_RECT"
              href="/about/"
              rel="noopener noreferrer"
              target="_self"
              >
              关于
            </a>
          </li>
        
          <li class="item-toolbox">
            <a
              class="ROUND_RECT"
              href="/atom.xml"
              rel="noopener noreferrer"
              target="_blank"
              >
              RSS
            </a>
          </li>
        
          <li class="item-toolbox">
            <a
              class="ROUND_RECT"
              href="/search/"
              rel="noopener noreferrer"
              target="_self"
              >
              搜索
            </a>
          </li>
        
      </ul>

    </div>
  </div>
</div>



  
      <div class="fexo-comments comments-post">
    
  <section class="disqus-comments">
    <div id="disqus_thread">
      <noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
    </div>
  </section>

  <script>
    var disqus_shortname = 'forsigner';
    
    var disqus_url = 'http://hanlyjiang.github.io/2016/01/11/多个Github仓库合并到一个作为分支存在/';
    
    (function(){
      var dsq = document.createElement('script');
      dsq.type = 'text/javascript';
      dsq.async = true;
      dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
      (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
    })();
  </script>

  <script id="dsq-count-scr" src="//forsigner.disqus.com/count.js" async></script>



    




  </div>

  

  <script type="text/javascript">
  function loadScript(url, callback) {
    var script = document.createElement('script')
    script.type = 'text/javascript';

    if (script.readyState) { //IE
      script.onreadystatechange = function() {
        if (script.readyState == 'loaded' ||
          script.readyState == 'complete') {
          script.onreadystatechange = null;
          callback();
        }
      };
    } else { //Others
      script.onload = function() {
        callback();
      };
    }

    script.src = url;
    document.getElementsByTagName('head')[0].appendChild(script);
  }

  window.onload = function() {
    loadScript('/js/bundle.js?235683', function() {
      // load success
    });
  }
</script>

</body>
</html>
